Skip to content

[cryptotest] Remove rsa_pss_4096_sha512_mgf1_32 test#28790

Merged
nasahlpa merged 1 commit intolowRISC:masterfrom
nasahlpa:fix_rsa
Dec 4, 2025
Merged

[cryptotest] Remove rsa_pss_4096_sha512_mgf1_32 test#28790
nasahlpa merged 1 commit intolowRISC:masterfrom
nasahlpa:fix_rsa

Conversation

@nasahlpa
Copy link
Member

In rsa_padding_pss_verify, salt_bytelen = digest_bytelen. Hence, the test where we use a digest bytelen of 64 bytes (for SHA512) but only use a salt bytelen of 32 bytes cannot work.

According to RFC 8017, 9.1.4: "Typical salt lengths in octets are hLen (the length of the output of the hash function Hash) and 0."

Closes #28656.

In `rsa_padding_pss_verify`, `salt_bytelen = digest_bytelen`. Hence,
the test where we use a digest bytelen of 64 bytes (for SHA512) but
only use a salt bytelen of 32 bytes cannot work.

According to RFC 8017, 9.1.4: "Typical salt lengths in octets are
hLen (the length of the output of the hash function Hash) and 0."

Closes lowRISC#28656.

Signed-off-by: Pascal Nasahl <[email protected]>
Copy link
Contributor

@andrea-caforio andrea-caforio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Thanks for taking care of this @nasahlpa.

Copy link
Contributor

@h-filali h-filali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straight forward. LGTM, thanks @nasahlpa !

@nasahlpa nasahlpa added this pull request to the merge queue Dec 4, 2025
Merged via the queue into lowRISC:master with commit 1fd34a3 Dec 4, 2025
47 checks passed
@nasahlpa nasahlpa added the CherryPick:earlgrey_1.0.0 This PR should be cherry-picked to earlgrey_1.0.0 label Dec 4, 2025
@lowrisc-ci
Copy link

lowrisc-ci bot commented Dec 4, 2025

Successfully created backport PR for earlgrey_1.0.0:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CherryPick:earlgrey_1.0.0 This PR should be cherry-picked to earlgrey_1.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[crypto] Fix remaining RSA verify tests

3 participants